export default {
  // 根据节点获取字典
  getDictByNode: (state) => (node, isSort = false) => {
    if (Object.prototype.hasOwnProperty.call(state.dict, node)) {
      if (isSort) {
        return state.dict.arryDict[node]
      } else {
        return { ...state.dict[node] }
      }
    }
    return {}
  },
  getTips: state => state.tips,
  // 获取所有字典
  getDict: state => state.dict,
  // 用户所有的品牌列表
  getUserBrandList: state => state.userBrandList,
}
